triangle question hackerrank solution

visit shbcf.ru